<?php $this->load->view("includes/header.php"); ?>

	<?php if(!isset($sidebar_modifier)){$sidebar_modifier="none";} ?>

    <div class="row">
      <?php if ($sidebar_modifier!="Hide Left"&&$sidebar_modifier!="Hide Both"): ?><div class="left_col">
        <div class="sidebar" id="left_sidebar"><?php if (isset($left_sidebar)) : ?><?php $this->load->view("includes/sidebar/$left_sidebar"); ?><?php endif; ?></div>
      </div><?php endif ?>
      <div class="center_col">
                <?php if ( $this->session->flashdata('errors') ) : ?>
                  <div class="error">
                    <?php print_r( $this->session->flashdata('errors') ); ?>
                  </div>
                  <?php endif; ?>
                  <?php if ( $this->session->flashdata('notices') ) : ?>
                  <div class="info">
                    <?php print_r( $this->session->flashdata('notices') ); ?>
                  </div>
            <?php endif; ?>
            <div class="clear">&nbsp;</div>
        <?php $this->load->view("includes/$main_content"); ?>
      </div>
      <?php if ($sidebar_modifier!="Hide Right"&&$sidebar_modifier!="Hide Both"): ?><div class="right_col">
        <div class="sidebar" id="right_sidebar"><?php if (isset($right_sidebar)) : ?><?php $this->load->view("includes/sidebar/$right_sidebar"); ?><?php endif; ?></div>
      </div><?php endif ?>
      <div class="clear"></div>
    </div>

<?php $this->load->view("includes/footer.php"); ?>